<?php
$imagick = new Imagick('/tmp/upload/test.jpg');
$imagick->cropThumbnailImage(100, 300);
$imagick->writeImage('/tmp/upload/test1.jpg');
